Soru & Cevap

webview ekran döndügünde yenileme sorunu

22.03.2020 - 09:39


<activity android:name=".Splashscreen" android:configChanges="keyboardHidden|orientation|screenSize" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
 

12 Görüntülenme

1 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

Profile picture for user f.erenyucal
f.erenyucal
17.02.2023 - 11:32
public class MyActivity extends Activity {

   private WebView mWebView;

   @Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);

   
       setContentView(R.layout.activity_main);

       mWebView = (WebView) findViewById(R.id.webview);

     
       mWebView.getSettings().setJavaScriptEnabled(true);

      
       mWebView.loadUrl("http://www.farukeren.com");
   }

   
   @Override
   public void onConfigurationChanged(Configuration newConfig) {
       super.onConfigurationChanged(newConfig);
   }
}